package com.designpatterns.behavioral.adapter.twoway;

public class Adapter implements Adaptee, Target {
    //同时维持对抽象目标类和适配者的引用
    private Adaptee adaptee;
    private Target target;

    @Override
    public void specificRequest() {
        adaptee.specificRequest();
    }

    @Override
    public void request() {
        target.request();
    }
}
